package top.haichi.webpaper.service;

import top.haichi.webpaper.entity.Result;
import top.haichi.webpaper.entity.Student;
import top.haichi.webpaper.entity.Teacher;

import javax.servlet.http.HttpServletResponse;

public interface TeacherService {

    /**
     * 老师设置个人信息
     * @param teacher
     * @return
     */
    public Result setInformation(Teacher teacher);

    /**
     * 新增老师信息
     * @param teacher
     * @return
     */
    public Result addTeacher(Teacher teacher);

    /**
     * 查询老师信息
     * @param teacher
     * @return
     */
    public Result getTeacher(Teacher teacher);

    /**
     * 获取老师头像
     * @param teacher
     * @return
     */
    public byte[] getPortrait(Teacher teacher,HttpServletResponse response);

    public Result updateTeacher(Teacher teacher);
}
